package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TProScanningmaterialMapper;
import com.ruoyi.system.domain.TProScanningmaterial;
import com.ruoyi.system.service.ITProScanningmaterialService;
import com.ruoyi.common.support.Convert;

/**
 * 扫描物料 服务层实现
 * 
 * @author ruoyi
 * @date 2019-02-20
 */
@Service
public class TProScanningmaterialServiceImpl implements ITProScanningmaterialService 
{
	@Autowired
	private TProScanningmaterialMapper tProScanningmaterialMapper;

	/**
     * 查询扫描物料信息
     * 
     * @param id 扫描物料ID
     * @return 扫描物料信息
     */
    @Override
	public TProScanningmaterial selectTProScanningmaterialById(String id)
	{
	    return tProScanningmaterialMapper.selectTProScanningmaterialById(id);
	}
	
	/**
     * 查询扫描物料列表
     * 
     * @param tProScanningmaterial 扫描物料信息
     * @return 扫描物料集合
     */
	@Override
	public List<TProScanningmaterial> selectTProScanningmaterialList(TProScanningmaterial tProScanningmaterial)
	{
	    return tProScanningmaterialMapper.selectTProScanningmaterialList(tProScanningmaterial);
	}
	
    /**
     * 新增扫描物料
     * 
     * @param tProScanningmaterial 扫描物料信息
     * @return 结果
     */
	@Override
	public int insertTProScanningmaterial(TProScanningmaterial tProScanningmaterial)
	{
	    return tProScanningmaterialMapper.insertTProScanningmaterial(tProScanningmaterial);
	}
	
	/**
     * 修改扫描物料
     * 
     * @param tProScanningmaterial 扫描物料信息
     * @return 结果
     */
	@Override
	public int updateTProScanningmaterial(TProScanningmaterial tProScanningmaterial)
	{
	    return tProScanningmaterialMapper.updateTProScanningmaterial(tProScanningmaterial);
	}

	/**
     * 删除扫描物料对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTProScanningmaterialByIds(String ids)
	{
		return tProScanningmaterialMapper.deleteTProScanningmaterialByIds(Convert.toStrArray(ids));
	}
	
}
